import axios from '@/untils/request'

/**
 * //获取首页推荐数据
 * @param {Object} params {limit :获取几条}
 * @returns {AxiosPromise}
 */
export function getRecommendList (params) {
  return axios({
    url: 'personalized',
    params
  })
}

/**
 *获取最新音乐
 * @param {Object} params {limit : 获取的条数}
 * @returns {AxiosPromise}
 */
export function getNewSongList (params) {
  return axios({
    url: 'personalized/newsong',
    params
  })
}
